package com.ffx.service.impl;

import com.ffx.mapper.ClassesMapper;
import com.ffx.service.ClassesService;
import com.ffx.util.MyBatisUtil;
import org.apache.ibatis.session.SqlSession;
import org.junit.internal.Classes;

import java.util.List;

/**
 * @outhor fufeixiang
 * @date 2021-11-08
 */
public class ClassesServiceImpl implements ClassesService {
    private ClassesMapper classesMapper;
    public ClassesServiceImpl(){
        SqlSession sqlSession = MyBatisUtil.getSqlSession(true);
        classesMapper = sqlSession.getMapper(ClassesMapper.class);
    }
    @Override
    public List<Classes> findAll() {

        return classesMapper.findAll();
    }
}
